package constant.milk.aptprice.apt;

import java.util.HashMap;

import android.content.Context;
import constant.milk.aptprice.database.DbAdapter;
import constant.milk.aptprice.database.DbInsertQuery;

public class JeollabukdoSetting
{
	private DbInsertQuery insertQuery;
	
	public JeollabukdoSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("고창군", "129", "89");
		setData("군산시", "155", "117");
		setData("김제시", "110", "73");
		setData("남원시", "134", "88");
		setData("무주군", "99", "62");
		setData("부안군", "127", "81");
		setData("순창군", "104", "66");
		setData("완주군", "130", "87");
		setData("익산시", "144", "108");
		setData("임실군", "79", "56");
		setData("장수군", "0", "0");
		setData("전주시 덕진구", "151", "117");
		setData("전주시 완산구", "153", "121");
		setData("정읍시", "141", "96");
		setData("진안군", "100", "60");
	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "전라북도");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
